package com.bmd.backgroundmanger.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 用户答题数据分析表实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("analytics")
@Schema(name = "Analytics", description = "用户答题数据分析实体类")
public class Analytics implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "分析ID")
    @TableId(value = "analytics_id", type = IdType.AUTO)
    private Integer analyticsId;

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "题目ID")
    private Integer questionId;

    @Schema(description = "正确率")
    private BigDecimal correctRate;

    @Schema(description = "活跃度")
    private Integer activityLevel;

    @Schema(description = "创建人")
    private Integer createBy;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "修改人")
    private Integer updateBy;

    @Schema(description = "修改时间")
    private LocalDateTime updateTime;
} 